#!/usr/bin/env python

import sys

file1 = open(sys.argv[1])
file2 = open(sys.argv[2])

for line1 in file1:
  prefix1, lang1, count1, elapsed1, url1 = line1.split("\t")
  line2 = file2.readline()
  prefix2, lang2, count2, elapsed2, url2 = line2.split("\t")
  if prefix1 != prefix2 or lang1 != lang2:
    print >>sys.stderr, "ERROR: different input data:\n", line1, line2
    sys.exit(1)
  if count1 != count2:
    print "\t".join((prefix1, lang1, count1, count2, url1))

